/*
题目链接:https://leetcode.cn/problems/find-numbers-with-even-number-of-digits/description/?envType=daily-question&envId=2025-04-30
*/

//题解代码:
class Solution {
public:
    bool f(int x){
        int cnt = 0;
        while(x){
            ++cnt;
            x/=10;
        }
        return (cnt&1) == 0;
    }
    int findNumbers(vector<int>& nums) {
        int ans = 0;
        for(auto& x : nums) ans += f(x);
        return ans;
    }
};
